package edu.hrbeu.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author wzq
 * @create 2022-01-06-10:08
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName(value = "t_user",resultMap = "rmUser")
public class User {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String username;
    private String password;
    private String nickName;
    private String tel;
    @TableField(value = "role_id",property = "role.id")
    private Role role;

}
